package com.oms.domain;

/**
 * ApplicantjoingroupId entity. @author MyEclipse Persistence Tools
 */

public class ApplicantjoingroupId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7323522084102657461L;
	// Fields

	private UserActivity userActivity;
	private Activitygroup activitygroup;

	// Constructors

	/** default constructor */
	public ApplicantjoingroupId() {
	}

	/** full constructor */
	public ApplicantjoingroupId(UserActivity userActivity,
			Activitygroup activitygroup) {
		this.userActivity = userActivity;
		this.activitygroup = activitygroup;
	}

	// Property accessors

	public UserActivity getUserActivity() {
		return this.userActivity;
	}

	public void setUserActivity(UserActivity userActivity) {
		this.userActivity = userActivity;
	}

	public Activitygroup getActivitygroup() {
		return this.activitygroup;
	}

	public void setActivitygroup(Activitygroup activitygroup) {
		this.activitygroup = activitygroup;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ApplicantjoingroupId))
			return false;
		ApplicantjoingroupId castOther = (ApplicantjoingroupId) other;

		return ((this.getUserActivity() == castOther.getUserActivity()) || (this
				.getUserActivity() != null
				&& castOther.getUserActivity() != null && this
				.getUserActivity().equals(castOther.getUserActivity())))
				&& ((this.getActivitygroup() == castOther.getActivitygroup()) || (this
						.getActivitygroup() != null
						&& castOther.getActivitygroup() != null && this
						.getActivitygroup()
						.equals(castOther.getActivitygroup())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getUserActivity() == null ? 0 : this.getUserActivity()
						.hashCode());
		result = 37
				* result
				+ (getActivitygroup() == null ? 0 : this.getActivitygroup()
						.hashCode());
		return result;
	}

}